import request from '@/utils/request'

export function getPriceList(params) {
  return request({
    url: '/tSalOrder/GetPriceList',
    method: 'get',
    params
  })
}
// 热销
export function queryMarketList(data) {
  return request({
    url: '/tSalOrder/queryMarketList',
    method: 'post',
    data
  })
}
// 加入购物车
export function insertShopping(data) {
  return request({
    url: '/tSalOrder/insertShopping',
    method: 'post',
    data
  })
}
// 删除商品
export function deleteMarket(data) {
  return request({
    url: '/tSalOrder/deleteMarket',
    method: 'post',
    data
  })
}
// 更新购物车
export function updateShopping(data) {
  return request({
    url: '/tSalOrder/updateShopping',
    method: 'post',
    data
  })
}
// 购物车列表
export function queryShopping(data) {
  return request({
    url: '/tSalOrder/queryShopping',
    method: 'post',
    data
  })
}
// 购物车删除
export function deleteShopping(data) {
  return request({
    url: '/tSalOrder/deleteShopping',
    method: 'post',
    data
  })
}
// 购物车结算 生成申请单
export function createSalApply(data) {
  return request({
    url: '/tSalOrderapply/createSalApply',
    method: 'post',
    data
  })
}
// 购物车清空
export function deleteShoppingList(data) {
  return request({
    url: '/tSalOrder/deleteShoppingList',
    method: 'post',
    data
  })
}

// 产品详情
export function queryMaretMaterial(params) {
  return request({
    url: '/tBdMaterial/queryMaretMaterial',
    method: 'get',
    params
  })
}
// 上传产品修改图片接口
export function updateMaterialImage(data) {
  return request({
    url: '/tBdMaterial/updateMaterialImage',
    method: 'put',
    data
  })
}
// 上传产品-商品显示接口
export function queryMaret(data) {
  return request({
    url: '/tSalOrder/queryMaret',
    method: 'post',
    data
  })
}
// 客户下单
export function queryTSalOrderapplyList(data) {
  return request({
    url: '/tSalOrderapply/queryTSalOrderDetailsList',
    method: 'post',
    data
  })
}
// 申请撤销
export function checkIsAbleAudit1(data) {
  return request({
    url: '/tSalOrderapply/undoSalApply',
    method: 'post',
    data
  })
}// 删除
export function deleteSalApply(data) {
  return request({
    url: '/tSalOrderapply/deleteSalApply',
    method: 'post',
    data
  })
}

